.box {
  width: 980px;
  margin: 0 auto;
  background-color: #ddd;
  padding: 20px;
  font-size: 13px;
  .users-table {
    width: 100%;
    border: 1px solid #fff;
    border-collapse: collapse;
    tr {
      border: 1px solid #fff;
      line-height: 35px;
      height: 35px;
      &.active {
        background-color: #e5facb;
      }
      &.tr-first {
        background-color: #409eff;
        color: #fff;
      }
      td {
        border: 1px solid #fff;
        text-align: center;
        img {
          vertical-align: middle;
          cursor: pointer;
          margin: 0 3px;
        }
      }
      th {
        border: 1px solid #fff;
        text-align: center;
      }
    }
  }
}

.opt {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .search-box {
    display: flex;
    align-items: center;
    padding-right: 10px;
    font-size: 13px;
    input {
      border: none;
      outline: none;
      border-radius: 5px;
      border: 1px solid #ddd;
      height: 30px;
      padding-left: 10px;
      width: 250px;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }
    button {
      height: 28px;
      border: none;
      width: 50px;
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
      &:hover {
        cursor: pointer;
        background-color: #fff;
      }
    }
    .add-btn {
      border-radius: 5px;
      border: 1px solid #ddd;
      height: 30px;
      width: 90px;
      background-color: #409eff;
      color: #fff;
      font-size: 13px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: 10px;
      &:hover {
        cursor: pointer;
        background-color: #0b6fb4;
      }
    }
  }
}

// 添加用户对话框
.add-dialog,
.detail-dialog,
.update-dialog {
  position: fixed;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  .content {
    width: 50%;
    min-width: 500px;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 10px;
    // 标题
    .headers {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0 10px;
      .title {
        font-weight: 700;
        font-size: 16px;
      }
      .colse-btn {
        font-size: 16px;
        padding: 5px;
        background-color: #ddd;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        color: #fff;
        border-radius: 3px;

        &:hover {
          cursor: pointer;
          background-color: #aaa;
        }
      }
    }
    // 表单
    .bodys {
      form {
        .form-item {
          padding: 10px;
          .info {
            display: flex;
            align-items: center;
            label {
              padding-right: 10px;
            }
            input[type='text'],
            input[type='password'],
            input[type='date'],
            select {
              flex: 1;
              outline: none;
              border: none;
              border: 1px solid #ddd;
              height: 30px;
              border-radius: 3px;
              padding-left: 10px;
            }
          }
          .valid {
            color: red;
          }
        }
      }
    }
    // 页脚
    .foots {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 10px 10px;
      div {
        padding: 5px 20px;
        background-color: #409eff;
        color: #fff;
        border-radius: 3px;
      }
      .cancel-add {
        background-color: gold;
        &:hover {
          cursor: pointer;
          background-color: rgb(223, 189, 1);
        }
      }
      .confirm-add {
        margin-left: 10px;
        &:hover {
          cursor: pointer;
          background-color: #3584d3;
        }
      }
    }
  }
}

// 查看详情对话框
.detail-dialog {
  .content {
    .bodys {
      .item {
        display: flex;
        padding: 7px 0;
        border-bottom: 1px solid #ddd;
        .key {
          flex: 2;
          font-weight: 700;
        }
        .value {
          flex: 8;
        }
      }
    }
  }
}

.logout {
  padding: 5px 10px;
  background-color: #409eff;
  color: #fff;
  border-radius: 3px;
  margin-left: 10px;
  &:hover {
    cursor: pointer;
    background-color: #3a82ca;
  }
}
.welcome {
  display: flex;
  align-items: center;
}
